<?php

include 'confidential_settings.php';
// This include contains 5 variables:
//  - db_name: database name
//  - table_name: table name
//  - username: username
//  - password: password
//  - localhost: host name

$dbh=mysql_connect ($localhost, $username, $password) or die('Cannot connect to the database because: ' . mysql_error());

mysql_select_db ($db_name) or die(mysql_error()); 

$result = mysql_query("SELECT * FROM $table_name");
 
while($row = mysql_fetch_array($result)){
	echo $row['nr'] . " - " . $row['val'];
	echo "<br />";
}

mysql_close($dbh);

?>
